import { herinRequist } from "../http.js";
// 餐券管理
const Meal = {
	getMealList(data) {
		return herinRequist({ url: '/app/ticket-list', method: 'GET', data, contentType:'application/json' });
	},
	getUsableList(meal_type) {
		return herinRequist({ url: '/app/ticket-usable-detail', method: 'GET', data: { meal_type }, contentType:'application/json' });
	},
	getDetails(data) {
		return herinRequist({ url: '/app/ticket-detail', method: 'GET', data ,contentType:'application/json'});
	},
	postTicketApply(data) {
		return herinRequist({ url: '/app/ticket-apply', method: 'POST', data ,contentType:'application/json'});
	},
	putApproval(data) {
		return herinRequist({ url: '/app/ticket-audit', method: 'POST', data ,contentType:'application/json'});
	},
	postTicketCancel(id) {
		return herinRequist({ url: '/app/ticket-cancel', method: 'POST', data: { id } ,contentType:'application/json'});
	},
	
	
}

export default Meal;